{
    let num = 0
    let temp = 0
    let nprogress = null


    let t = setInterval(function () {
        if (nprogress) {
            nprogress.style.width = num + '%'
        } else {
            nprogress = document.createElement('div')
            nprogress.style.position = 'fixed'
            nprogress.style.top = '0'
            nprogress.style.height = '5px'
            nprogress.style.width = num + '%'
            nprogress.style.backgroundColor = '#29d'
            document.body.appendChild(nprogress)
            
            let nprogressRadius = document.createElement('div')
            nprogressRadius.className = 'nprogressRadius'
            document.body.appendChild(nprogressRadius)
        }

        if (num >= 95 && !temp) return
        num++
        if (num >= 110) {
            document.body.removeChild(nprogress)
            document.body.removeChild(document.querySelector('.nprogressRadius'))
            clearInterval(t)
        }
    }, 10)
    window.addEventListener('load', function () {
        temp = 1
    })
}
